<template>
  <div id="app">
    <div class="top clearfix">
      <img :src="require('./assets/img/index (1).png')" alt="" class="fl" @click="$router.go(-1)" v-show="isShow">
      <div>{{$route.name}}</div>
    </div>
    <router-view class="bottom"></router-view>
  </div>
</template>

<script>
export default {
  data(){
    return{

    }
  },
  computed:{
    isShow(){
      if(this.$route.path=="/index/home"||this.$route.path=="/index/cate"||this.$route.path=="/index/shop"||this.$route.path=="/index/mine"){
        return false
      }else{
        return true
      }
    }
  },
}
</script>

<style scoped>
.top{position: fixed; top: 0; left: 0;width: 100vw; height: 0.7rem; background-color: #FF6040; color: white; text-align: center; line-height: 0.7rem; font-size: 0.36rem;}
img{margin-top: 0.2rem; height: 0.34rem; margin-left: 0.1rem;}
.bottom{padding-top: 0.7rem;}
</style>